#include "../ConcuShare.h"
#include "../util/Log.h"

#include "../util/definitions.h"

#include <sys/stat.h>
#include <sys/types.h>


//#ifdef __MAAAIN__
int main(int argc, char* argv[]) {

	Log::logScreenToFile(); //descomentar para logguear directo a disco

	//creo las carpetas que se van a usar
	mkdir(TEMP_FOLDER, 0777);
	mkdir(DOWNLOADS_FOLDER, 0777);

	Log::getInstance().log(getpid()," ");
	Log::getInstance().log(getpid()," - ConcuShare -");
	Log::logToScreen();

	ConcuShare concuShare;
	concuShare.start_application();

	Log::getInstance().log(getpid(), "Proceso terminado");

	return 0;
}

//#endif
